package org.dcc.controller;

import org.dcc.api.clients.OrderServiceFeignClient;
import org.dcc.api.dto.OrderDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderFeignController {

    @Autowired
    OrderServiceFeignClient orderServiceFeignClient;

    @GetMapping("/order/{id}")
    public String getOrder(@PathVariable int id){
        return orderServiceFeignClient.getOrder(id);
    }

}
